]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
barLevel: Don't reset value on overview-start changes
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 25 Jul 2019 15:59:01 +0000 (15:59 +0000)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 6 Aug 2019 12:52:41 +0000 (14:52 +0200)
While it makes sense to cap the current value to a new maximum value,
I can't think of a good reason why changing the overdrive-start should
reset the current value to that.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/654

js/ui/barLevel.js

index ea295f1e8f1ada08b892416c73031568080d8515..7b3d892135824675e04557ea89f2f53969b0492a 100644 (file)
@@ -89,7 +89,6 @@ var BarLevel = class {
                 `which is a number greater than the maximum allowed value ${this._maxValue}`);
 
         this._overdriveStart = value;
-        this._value = Math.max(Math.min(value, this._maxValue), 0);
         this.actor.queue_repaint();
     }